//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cc.jq1024.router.util;

public class StringUtils {
    public StringUtils() {
    }

    public static String middleScoreToCamelCase(String input) {
        StringBuilder result = new StringBuilder();
        boolean nextUpperCase = false;

        for(int i = 0; i < input.length(); ++i) {
            char currentChar = input.charAt(i);
            if (currentChar == '-') {
                nextUpperCase = true;
            } else if (nextUpperCase) {
                result.append(Character.toUpperCase(currentChar));
                nextUpperCase = false;
            } else {
                result.append(currentChar);
            }
        }

        return result.toString();
    }
}
